<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    

    <title>提现管理</title>
    <link rel="shortcut icon" href="favicon.ico">
    <link href="/static/manager/css/bootstrap.min.css?v=3.3.5" rel="stylesheet">
    <link href="/static/manager/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <!-- Data Tables -->
    <link href="/static/manager/css/plugins/dataTables/dataTables.bootstrap.css" rel="stylesheet">

    <link href="/static/manager/css/animate.min.css" rel="stylesheet">
    <link href="/static/manager/css/style.min.css?v=4.0.0" rel="stylesheet"><base target="_blank">

</head>

<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>提现列表</h5>  
                    </div>
                    <div class="ibox-content">

                        <table class="table table-striped table-bordered table-hover dataTables-example">
                            <thead>
                                <tr>
                                    <th>提现编号</th>
                                    <th>手机号</th>							
                                    <th>提现方式</th>
                                    <th>账号信息</th>
                                    <th>提现金额</th>
                                    <th>备注信息</th>
									<th>申请时间</th>
                                    <th>操作</th>
                                </tr>
                            </thead>
                            <tbody>
                            {volist name='txdata' id='vo'}
                                <tr class="gradeX">
                                    <td>TXMANAGER{$vo.tixian_id}</td>
                                    <td>{$vo.tixian_user}</td>
                                    <td>
                                        {eq name="vo.tixian_type" value="1" }微信{/eq}
                                        {eq name="vo.tixian_type" value="2" }支付宝{/eq}
                                        {eq name="vo.tixian_type" value="3" }银行卡{/eq}
                                    </td>
                                    <td>
                                        {eq name="vo.tixian_type" value="3" }
                                        银行名称:{$vo.tixian_bank}<br/>
                                        银行卡号:{$vo.tixian_number}<br/>
                                        银行户主:{$vo.tixian_bank_user}
                                        {/eq}
                                        {eq name="vo.tixian_type" value="2" }
                                        支付宝号:{$vo.tixian_number}
                                        {/eq}
                                        {eq name="vo.tixian_type" value="1" }
                                        微信号:{$vo.tixian_number}
                                        {/eq}
                                    </td>
									<td class="center">￥{$vo.tixian_money}</td>
                                    <th>{$vo.tixian_user|remark}</th>
									<th>{$vo.tixian_time}</th>
                                    <td class="center">
									<button type="button" class="btn btn-primary btn-sm" onclick="txs({$vo.tixian_id})">确定</button>
									<button type="button" class="btn btn-default btn-sm" onclick="txf({$vo.tixian_id},{$vo.tixian_money})">驳回</button>
									</td>
                                </tr>
                            {/volist}
                            </tbody>
                        </table>

                    </div>
                </div>
            </div>
        </div>
        
    </div>
    <script src="/static/manager/js/jquery.min.js?v=2.1.4"></script>
    <script src="/static/manager/js/bootstrap.min.js?v=3.3.5"></script>
    <script src="/static/manager/js/plugins/jeditable/jquery.jeditable.js"></script>
    <script src="/static/manager/js/plugins/dataTables/jquery.dataTables.js"></script>
    <script src="/static/manager/js/plugins/dataTables/dataTables.bootstrap.js"></script>
    <script src="/static/manager/js/content.min.js?v=1.0.0"></script>
    <script>
        $(document).ready(function() {
            $('.dataTables-example').DataTable();
        } );
        function txs(id) {
            if(confirm("是否确定提现成功？"))
            {
                $.post("/manager/Index/tx_su",{id:id},function(result){
                    alert(result);
                    window.location.reload();
                });
            }

        }
        function txf(id,money) {
            if(confirm("是否确定驳回提现申请？"))
            {
                $.post("/manager/Index/tx_fa",{id:id,money:money},function(result){
                    alert(result);
                    window.location.reload();
                });
            }

        }
    </script>


</body>

</html>